How to do the detection settings