Improve reproducibility introducing data.dir varibale