Adding support for vertical mode
Adding support for vertical mode