Ummm… Loop through the records and create an array of Families and an array of Individuals. If there are Families create them so the ID’s exist. Then loop through the Individuals.