Made the breaking and the distance measurement speed sensitive. Instead
of incrementing simple amount, we use the sent speed values.