Made enrich and infer asynchronous.