Corrected the outdated USB APIs and the accessory identification