Update exportData

Final code