added extra code for usb connections as well as a print statement for debugging.