Add search functionality to program