Added ability to pass arbitrary filenames.  Kept basefilename sequential capability, though.