Added basic support for settings (as JSON)