Add in initial support for transforming the data prior to writing it out.