Make it work if the max number of processes is 1