Removed old rotation code which is no longer necessary.