I'm pretty sure some patterns can run multiple times, for instance `onload` will cause all `env` to be evaluated again. Counting the confidence multiple times will give a result that's too high.