Move global varaibles to config file