Add attributes and line ending crap