Add encoder publish and message.