Add connection region detection algorithm.