Some tools for diagnostics