Made get_data compatible with data_path_format