Added pinging to the API so that it can detect when USB is removed/attached