[Fixes #47692881] Made the script go through a thread. Not sure if this would work on iron.io