Undo change to processEvents.