Changed return command to extend rotateTo command