Make n cpus optional with default 1.