Start of events, and initialization