Implemented rotation properly.