Changed the threaded functionality to remove QSocketNotifier Error message