Refactored linked list.