Modify the queue.