Added assimilate operation and tests.