Made the search bar work.