Use HashMap instead of List.