Added threading, but program isn't working yet due to some bugs
Added threading. Program does not yet work because of some bugs