Added param for specifying output filename prefixes, and corresponding output-filfilename template.