Further updated weighted search, makes more accurate searches.