Cleanup P_ModificationDetection.