Now dynamically setting segmentOutputPath too