Changed decision on which nodes are kept in queue to clarify what code does. Now all nodes are in queue.