Added motor control