Implemented new print hook.