Added scoring system to determine "best" match