Moving connected peers logic to outside class