Usb reset, improvements to logic.