Implemented mechanism responsible for dividing for threads on the GUI side. Not tested