Supporting specifying file name via spoolDir and spoolName