Add diagnostics.