Changing actual code to support new vis code.