Seems to work, Fixed multithreading sync bugs. TaskQueue and EventQueue
are now not multithreaded.