Add state machine in place model