Attempting reimplementation of scrolling