Allow specification of number of cpus.