New function hmoment