[dev] More accurate computation of maximum mass.