Rewrite the retry logic