Use FailureReason for generating stats