Added preprocess functions.