Added isRetry allowed method.