Add model registration hook.