Thread-safe.