Dynamic rotation

Dynamic rotation implemented