The public API for Diffusion.