Configuring the detector