Adding arguments -scanpath and -indexpath to wight