Adds state script :-)

—Koen