Update Index/Examples; Fix scoping issue