Made the number of threads depend on a global constant