Added functions for modifying a linked list of peers (untested).