Distance

Updated distance calculation to be accurate now.