Fixed the script to actually work, probably