Beginning of an import function for the new API