Add support for network request retries.