Added support for portrait.