Improved Multithreading Support, Minor Fixes