Added scanning for devices.