Add distance calculate. Modified menu.