Changed init event to new event syntax