Modify the template model