Refactored some repeated code into processResults()