Some support code to help me figure out the correct rotation.