Add checks for whether variables are already set