Added ability to save dataset on creation of fields from template file