MASS-internal function

Internal MASS functions