Converting the data for import