Added comment to explain why race condition was occurring