More work on exptemplates.