Export in a more node-y and manageable way