Trying to get auto-rotating working

Trying to get auto-rotating working