Added support for custom settings.