Use Map instead of HashMap.