Registering the events helps.