Rewrite and rename load_config() function.