Pre and post-processing data