Export resource algorithm