Refactoring how files are processed to be iterative instead of recursive.