Minor refactoring of foreach loop
Minor refactoring of Paerson#run()