Added a trigger when a search is complete.