Implement register method