Fixed closure related bug
Changed config var name
More descriptive var name