Move conf file generation into an interface; fixed a bug with missing use of deepcopy on the Function interfaces.