Script seems to work fine, but when it's running, the mouse and parts of the UI become a bit sluggish until it's terminated.