Working script v1.0