Fixing altitude distance calculations, improving preferences