Refactor to support USB connection to NXT (host mode required)