Rename get_data to write_data