Updated config variable handling and logging.