You can use an automaton to do things automatically