Fixing high cpu.