New center of mass function