Added Right and Left Orientation to template