More debugging, need to make it so that templates are properly extending