Trying to connect to device