Change so that the velocity is the maximum speed.