Implemented rotation.