Make the script actually work