Added thread safe queue and hash table.