Made automation toggleable