Threading fix.