Move Extended Template Funciton Logic into Template Object