Added rotate functions.