Made the template actually work