Added auto scroll functionality.