def METHOD_NAME(root, name, vals, block='execute', est_name='Estimator'):
    node = root.find(block)
    if est_name == 'Estimator':
        param = et.Element(est_name, name=name)
    else:
        param = et.Element(est_name)
    base_name = "execute/Estimator[@name='{:s}']".format(name)
    node.append(param)
    for k, v in vals.items():
        # Add list of observables
        if k == 'obs':
            for o, p in v.items():
                METHOD_NAME(root, name, p,
                              block=base_name,
                              est_name=o)
        else:
            if est_name != 'Estimator':
                add_param(root, base_name+'/'+est_name, k, v)
            else:
                add_param(root, base_name, k, v)