Making it easier to specify the number of threads.