Changed template registration API