Before changing anything from the template