Final version and output file