Add some more functions on the M-digits