Simplify script visitor