Change definition of velocity to be current minus previous