Refined the detection.