Added back missing rotation code (removed accidentally in v1.9.2).