Added some message logic and published edits mesages.