Implemented X and Y axis rotation.