Fixed script more.

Script works now. Sort of.