Variable scoped too tightly in data display routine.