Configuring diagnostics