Added support for horizontal scrolling