Moved thread related commands to the thread module.