Adjusting the query to fetch more data