Added basic autoscroll functionality

Hi, just making a PR with autoscroll stuff in case you can't figure it out.
Cheers