Sending to server correctly