Reinstituted for-loop for each file