Changed the way rotate works