Add calcM method and spec.