Added support for publishing thoughts.