Add fuzzy text matching. Add preliminary reference detection