Fixed a bug in pc.c, where if a heartbeat was sent, cur would be stuck on the same pointer every time. Reasons unclear, however linked list seems to behave properly, and output now correct, so not of concern at this stage.