Add functions to subscribe and publish data.