Added a rotate method.