Added csv checking