Added rotate functionality