Added call to get center of mass