Output was rewritteen on each input file.