So does it do best-match or first-match? There are two loops here.