Improved the scrolling algorithm and tweaked the values a bit.