added wait time for search