Added 'M2_diagnostics.rotate()' method.