Add preprocess_ functions