Added beginnings of script

Doesn't run correctly yet.