Export format function