Removed final else on distance calculations