Imporoved leg detection by checking for two leg patterns in one segment.