Tied new implementation together in main exporter.js