Multistage file processing.