Saves number of rotations as variable for ref.