Added qm.simplify()