Added publish_data function to publish non-model data.