Added velocity clamping