Add helper function, but function lost reference to other values.