Use externalized max query length number