Modified addCPU for new JSON format.