Add function to customize native object value