Deprecated usage of erasePublication
Internal optimization of exporter
Better error handling