commGetVelocities function added