Now also setting the max trans velocity and not only the max vel x.