More improvement on path sequence matching.