Ported to use libusbd