Moved ingest to its own method.
Added validation entry point.