Edit distance updated