Rewrite of print.