Implement event queue and delayed enqueue event