new schedule, flow graph. Add a state machine