Renaming some variable names. Restructure some code with "var". Correct the chaining because it was also changing _wrapped.