Adding registering method.