Add TransformMessageFragment and accompanying changes.