Got autorotation working