Shrunk number of lines of code for cpu.php