Added new and improved automaton