Implemented most of execCPU()