Adds publishing message.