Use hashmap instead of hashtable