Updated data export conversion fn (from bobby)