Template housekeeping