Changed the way apps connect to remote devices and the handling of any errors