Implemented printing.