Changed the way to get config vars