Add basic template and basic housekeeping