Add some diagnostics.