Diagnostic loop