Removed unnecessary functionality from settings API demo code, untested.