Changes to the linked list implementation