Working script version