Finished the rotation method.