      set auto_type [::iptypes::which_type [dict get $evaluated_type {*}$auto_ref]]
          # TODO/WARNING: Below is generic but only implemented bitwidth
          set fname "::iptypes::$auto_type\::eval_$auto_node"
          puts_debug "update_datatype: Looking for $fname"
          if { [info procs $fname] ne "" } {
            puts_debug "update_datatype: Running $fname"
            puts_debug "update_datatype: Passed evaluated_type: $evaluated_type"
            puts_debug "update_datatype: Passed auto_ref: $auto_ref"
            $fname evaluated_type $auto_ref
          }
        }
        # Update type def on bus parameters
        set_datatype $chan $bus CORE $evaluated_type
        set ret_val $evaluated_type ;# Redundant????
      } else {
        send_vip_msg ERROR "912" "$chan $bus: Invalid data type defined"
      }
      return $ret_val ;# exit here
    } else {
      set ret_val $dataelm
    }
    
    foreach key [dict keys $ret_val] {
      if { [lsearch $::iptypes::base_nodes_using_common $key] > -1 } {
        # Base node that contains a value and/or dependency
        # First check if it has a dependency to resolve
        puts_debug "update_datatype: $key $keyref"
        if { [dict get $ret_val $key attribs resolve_type] eq "dependent" } {
          # ::bd::send_msg -of $ipref -type ERROR -msg_id "910" "$chan $bus: Unsupported resolve_type: dependent"
          send_vip_msg ERROR "910" "$chan $bus: Unsupported resolve_type: dependent"
        } elseif { [dict get $ret_val $key attribs resolve_type] eq "generated" } {
          puts_debug "update_datatype: Evaluating $keyref $key"
          # Find dependency functions
          # set fpath [set ${viph}::rootns]
          set func_name [dict get $ret_val $key attribs dependency]
          if { $func_name eq "" } {
            # Default expected function name
            set func_name "${typedef_ns}::updateDataType_$chan\_[string toupper $bus]_[join $keyref "_"]_$key"
          } else {
            set func_name "${typedef_ns}::updateDataType_$chan\_[string toupper $bus]_$func_name"
          }
          puts_debug "update_datatype: Using: $func_name"
          
          # No need to check if proc exists, this was done when the virtual IP object was created
          # UPDATE: No it doesn't, add check here, slower?? Also check if it is expected an arg
          set evaluate_value ""
          if { [llength [info procs $func_name]] > 0 } {
            set num_func_args [llength [info args $func_name]]
            if {$num_func_args == 0} {
              set evaluate_value [$func_name]
            } elseif { $num_func_args == 1} {
              set evaluate_value [$func_name $ipref]
            } else {
              send_vip_msg ERROR "915" "Too many arguments defined for data type callback: $func_name. Expect 0 or 1 got $num_func_args"
            }
            puts_debug "update_datatype: Got: $evaluate_value"
          } else {
            send_vip_msg ERROR "915" "Data type callback not found: $func_name"
          }
          
          # Test return value given nodes format
          set node_format [dict get $ret_val $key attribs format]
          set value_ok [::iptypes::valid_value $evaluate_value $node_format]
          # Set evalutated value onto node
          if { $value_ok } {
            dict set ret_val $key value $evaluate_value
          } else {
            # ::bd::send_msg -of $ipref -type ERROR -msg_id "911" -text "$chan $bus: Invalid value, $evaluate_value, for format $node_format returned from callback: $func_name"
            send_vip_msg ERROR "911" "$chan $bus: Invalid value, $evaluate_value, for format $node_format returned from callback: $func_name"
          }
          
        } elseif { [dict get $ret_val $key attribs resolve_type] eq "automatic" && $key eq "bitwidth" } {
          set ref [concat $keyref $key]
          puts_debug  "update_datatype: Auto dependency for: $ref keyref: $keyref key: $key"
          lappend auto_dependency_list [list [llength $ref] $ref]
        }
      } else {
        # Hierarchal node that we need to iterate lower
        dict set ret_val $key [update_datatype $chan $bus [dict get $ret_val $key] [concat $keyref $key]]
      }
    }
    return $ret_val
  