it's probably better to name this `maxTries` or `maxAttempts` as max retries could be confusing as to whether or not it means *in addition to* the first attempt...