Added register method