Use Map instead of HashMap for declaration.