Added option to disable auto-scrolling.