Fixed ability to set maxRunningFlag