Switched from Data.Map to Data.HashMap for better performance