Fixed newline print issue for non factored lines, removed newline characters from message prints.