Implemented generic object printing.