Working on event queue.