Added an option to show or hide the hook output.