Added in a callback for the search functions