Fixed script, now works!