Adds state machine submodule