Changed code to print new lines.