Fixed the CPU waste.