Data migration how-to: External functions