(UNTESTED) Added precise rotation code..Prolly won't work..