I don't like this global variable approach. We've discussed alternatives.