Added more code relating to distnace table.