Added stuff for rotations.
Added stuff for rotations.