Created register method