Added ability to send data to client.