General work on linked-list routines