Compact the output file