Add search with functor