Use the correct number of threads