Added custom control for maximum acceleration and velocity.