Made chained queries use the user agent as well