Small change to loop to make sure it prints last.