Added simple motor speed control.