Added register event thing