Replace register event with init call