Replaced Hash by Map class.