Add support for orientation.