Make registerAndExport synchronous.