Make sure we use the maximum number of threads allowed.