Finally make the template work