Will check for connection to device before continuing