Lots more optimizations along with better thread management.