Moved export functionality to n4d