Working script is almost done.