Implemented tree publishing.