ADD: the search and analyze functions.