Added code for communicating with other nodes