Implementing support for two orientations.