Implemented new print hook.

Implemented new print hook.