Starting to work on template_lookup