Loop through header list to ensure columns align correctly