Updated for search queries to reach backend.