It might read better as `remaining_retries` counting down from max rather than up from 0 to max.