Add state machines