Added some ideas for generator spying. [ci skip]
Implemented call events.