Add `make_events` function