Added EPMaterialAux function