After clicking the green flag, press 1 to show the working formula, or press 2 to show the NOT-working formula. :( Press 3 to show the fixed one :3
Added 3 axes of rotation and changed the way the math works.