Added looping to KML import.