Use correct newline char
Reduce debug chatter
Allow data field to be passed and use it. Fix newline