Added support for JavaScript Function references and Regular Expressions in settings.