Changed num threads to 1.