Fixed up scripts