Adds on-demand injection.