Fix threading model.