Complete file processing overhaul