See the manual, specifically under SetM.