Implement function to send data to other peers