Added semiring adapter.