Changing event system so that events are raised during Update cycle.