Improved threading model.