Save the template and loop