Changed print to println on loops