Fixed outfile naming bug.