Set a maximum of 5 retries.