Extended the script so it exports path's as well