Added comparison with original priorities to determine if there was a match or not