Extracted process_loaded_file and mtime methods for clarity