Changes to get_template_context