Adding functionality to return header names in correct order along with map data.