Add register method