Changes to template function of CItemProd