Added rotate-function