Add load function in config.