Added an interface for sending data to the server