Implemented global and custom config.