Dirty support of the horizontal mode
Should be rewritten cleaner