Modified Functions Wacky

Included loop amd adjusted variable definition obtainment for (var
method)