Move usb capture and processing into a class