Need to document invoke_hooks