Added class 'M2_diagnostics'.