Added new publish method with support for rpc related properties