Make sure important variables survive local scope.