Changed the number of threads to 2