Modify blending algorithm to accept parameters to set stopping criteria.