Dictionary changed to Hashtable for speed purposes