Sifting through the templates and updating them