Converted Map to use HashMap instead of array.