Dont use array of maps for data, it was slow and impossible to decide order of maps. Use multidim array instead, and save headers sep.