Adds search functionality