Incorporate and begin using cog to generate message handling code