Added functionality for publishing, warning nonworking