Add in-package message generation macro.
Update templates.