Added support for all device orientations.