Create and initialize the queue.