Made the template work