Updates to template PHP