Add beforeImport option