Moved config to globals