Improved rotate mode. (aka re-wrote)