Move cpu_names into while loop. Fixes bug.