Converting interp2_seq and interp2_direct to templates.