Added missing n_cpus variable