Set retries correctly