Added a button to control whether it is auto or manual run