Script cleanup