initialize max_retries in Init as intended.