REF: _registered_vars is now a set, recorded_vars a property.