Added asserts.