Add loading hook.