Added per-pattern confidence levels, paved the way for version detection