This functionality would seem to belong in settings.js not here?