Add temporary diagnostics for debugging