Thread safe io now works.