BatchPreprocessing script version 1.38