Modify m2t generator