Add -c switch to control the number of cores to use