Change way of generating code for options.settings