Solved some multithreading problems.