Updated fuzzy match code.