Global variables which were used only locally are now locally (memory stream in PolyTessGeo).