This is also not thread-safe.