Handle config file and extra variables.