Added name_changed variable to match scope

Fix #217
Merge pull request #218 from rhefner1/issue-217

Added name_changed variable to match scope