Modified to pass StateCode to Viz.