Add max query length