Added ability to set orientation