Added the ability for the main application to verify if a device is actually connected