Indeed, the analyze function is not reentrant: console log shows errors when typing CTRL-S too fast. I did not expect that behavior.