Fixed lookup of int value to get_integer_value and added default pin length