Doubly-linked lists are now used for nodes to end in the proper order.