Added rotate() function. Not hooked up yet...