Moving from array-based to object-based assembly of the CSV (ensures consistent order)