More sensible way of event init. My attempts going to function.