Replace Hash with Map class.