Add GetDistance method