Added Orientation output function