Removed logging side-effect on headers
Fixed newlines.