First pass actually processing a file; need to clean up output.