Add switch for automode