Added rotate direction method