Implement rotation.