Added in the inbound and outbound communication functions for communicationing between the server and the client