Restored the accidentially crippled template() function