Add an option for automatic mode toggle.