Added motor control.