Finally getting all the fancy template crap to work.