Change velocity to double