Use inject instead of collect for the import process