Update preprocess tool

Update of the preprocess tool.