Finished writing send_file function.