Added global config object and setup function