Rotation functionality implemented