System initialization

Initialization code moved to the EventModule