Making it more flexible to change the max number of threads with multiple runs.