Add exception.
Add calculate distance between logic.