Support for portrait and landscape modes now.