Swapped HashMap with std::map.