Added two distances. Problem with accessing by key