Waiting for the device to connect