Added a constructor for PeerManager