Working out what to do for the template