State machine could be load from an json file.