Make sensible send_data and read_response functions