Remove redundant thread sleep.
Switch from Hashtable to Dictionary