Read velocity function