Updated temp_data to new format