Switched which variable I use to build the template