Setting up Device Detector