Basic diagnostics module for debugging.