Modified ingestion code. Added search code.