Add the function to search the devices.