Changed the output from vector to Hashmap.