Adjust the "insert template" routines