Added option to specify an explicit base file name, with more predictable resulting file names.