Added message transformers.
Conditionally add properties if specified.