Refactored the process_udiff to be foreach friendly, and made the call use an
anonymous function that directly calls it