A call to IN_PumpEvents added, and CPU usage lowered