Working on full implementation of publishing messages