Added motor speed control