Custom message and publisher example