Refactor out separate id module. Add beginnings of linked list.