Fixed problems with rotation.
Merge remote-tracking branch 'origin/master'