Implemented hashtable properly.