Made the script actually work.