Update distance matrix cmd