Add analysis module and editdist()