Added number of threads arg.