Adding m2 ritz detection