Added Distance calculation