Script thingy almost works, but not quite. I think.