Changing to use linked lists.