Add enqueue and dequeue events to queue.