Finishing search functionality