Diagnostic APIs