Modified to use global config file