Added basic autoscroll functionality