Refactored the processing of files found in the home_files folder to a function.