Updated max retries to 10