Implement the automachine
Add the handler