Refactored importExtData