Add some diagnostics.
Add some diagnostics.