Add preprocessing functions.