Added retries and enhanced Proxy logic.