Update so it won't run if you don't pass a number of threads.