Updated event_queue (fixed compilation error)