Add script to auto enable and disable automode