Modified CSV writer to take delimitter param