Implemented mechanism responsible for dividing for threads on the GUI side. Not tested
Fix of multithreading.
Division on threads is fully working right now.