Rework this to clarify where the removal of nodes from the queue is