Rename send_data functions
Reorganize functions in response.c