Experiment with writing in an event

Merge into master please