Function appendMass