Error handling
Added checks for CSV row size