added max collective, to run with runtime.