Thread safe(?) version of the search.