Improve file processing