Adjusting the task query to prevent it from getting too large and busting my memory cap