It works, but I still need to figure out the proper way to kill the threads.