The code in updateOrientation() was pulled out of update() and put into its own method.