Adding a check on number of fields
(would have caught newline issue)