Adding setOrientation and getOrientation handling