Fix #220 by parsing CM's modes directly