Better generation of experiment output file.