Add support for horizontal mode.