Close

detection algorithm.