Updated the visualize script