Add some data munging functions.