Completely removed the thread stuff.