Added a template setup to subrecords