Added actual script. I think. I hope. I have no idea what I'm doing.