Put looking for devices in a new thread