Example changed to evented API