Fixed the config function declaration and wrapper method.