Implemented rotating to specific direction.