Made identified state thread-safe to hopefully solve crashing issue.