Introduced "output_hook" argument