Ensured race condition wouldn't happen with stackoverflow demo.