Added csv parse function