Modify handling of retries.