Refactoring of ppu to internalize cycle count.