Some changes in backend for publishing.