Wow, it worked! Thanks.
Now I just need to know how to do it for several threads, instead of just one. I tried separating the thread id numbers by commas and got an error. I also separated them by spaces and got an error. Should I just paste the entire code again and again for every one?
I'm eventually going to do it for hundreds of threads, so let me know the best way to go about it.