Make retries configurable