Added support for landscape mode.