Adds header checking and field reordering based on lasted CSV