Moved back to threading, set daemon to true for thread, moved thread to module