Changed schedule flags to be more robust.