Added entity register method.