Fixed dynamic scheduling with the DYNAMIC_SCHEDULE env variable.