Fixed header and output hooking procedure