Most of the working link list.

Added some debugging statements to find where it was crashing.