Add multiply template support.