Needed to register method