Ingest function