Adds the thread module