Distance calculation now works properly. Used the "Haversine Formula"