Make it easier to specify infile, outfile, and reference directory.