Added retries for 50x errors