Minor improvements to viz code