Updated priority intent service to filter out duplicates through a comparator