Use Config instead of globals