Added register handler