Reimplemented getM