Fixed require bug w/ state machine factory.