Added csv parsing method