Changed print-list function.