Tweaked set_defaults()

Pass a reference to the variable, not a copy of the data.