Make orientation work again

Direct changes 90 degree but also flips of 180 degrees works. Both
should be tested by QA.