Moved from the simple thread module to threading