Adding preprocess func