Add some basic code for sending data to the server