Add option to control autoscroll