Updated the code to accomodate the new settingsVariable-style.