Thread safe.