Formatting of settings code