A collection of pre-processing functions