Now the events generate their ids automatically