Rotation handler.