Add callback to createEsExport