Why do we have to do minus 1 instead of using all cpus here?