Added retryingN for different logging based on repetition count