Different newlines, more error checking