Creating the mediator - code for sending CCR over the network.