Track connecting and disconnected peers. Made peerID an instance variable.