Add a resume hook.