Log/code for horizontal scrolling is also added.