Added in a work-around to the screen rotation problem.