Saving settings and output into data directory