Adding def for upstream