Improved visualize scripts