Added new function to export