Adding output directory to Sampler class.