Created a ThreadAwareDiscovery utility.