Refactored FileLoader & fileProcessor