Added final result printing.