Added diagnostics.