Better document data export related code